FROM ubuntu:18.04

RUN apt update
RUN apt install gcc -y
RUN apt install autoconf automake libtool curl make g++ unzip -y
RUN apt install file -y
RUN apt install zlib1g-dev -y
COPY protobuf-cpp-3.11.4.tar.gz /
RUN tar -xvf protobuf-cpp-3.11.4.tar.gz
RUN cd protobuf-3.11.4/ && ./configure && make -j8 && make install && ldconfig
RUN rm protobuf-cpp-3.11.4.tar.gz
RUN rm -rf protobuf-3.11.4/
COPY ./baidunetdisk_3.5.0_amd64.deb /
RUN apt install libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libappindicator3-1 libsecret-1-0 -y
RUN apt install libgbm-dev -y
RUN apt install libasound2-dev  -y
RUN apt install language-pack-zh-hans -y
RUN apt install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy -y 
COPY locale /etc/default/locale
RUN cat /etc/default/locale >> /etc/environment
RUN dpkg -i baidunetdisk_3.5.0_amd64.deb

